var mongoose = require('mongoose'),
    Schema = mongoose.Schema;

var Secretario = new Schema({
    nome: String,
    email: {type: String, index: {unique: true}},
    username: {type: String, index: {unique: true}},
    password: String,
    roles: {type: [String], default: ['manager']},
    matricula: String,
    telefone: String
});

mongoose.model('Secretario', Secretario);

exports.SecretarioSchema = Secretario;
exports.Secretario = mongoose.model('Secretario');
